package com.credithc.signature.common.ro.manager;

import lombok.Data;
import org.apache.logging.log4j.util.Strings;
import org.springframework.beans.factory.annotation.Value;
import java.util.List;

/**
 * @Author: qiyichen
 * @Date: 2019/5/23 16:49
 * @Description:
 */
@Data
public class ApprovalRo {
    //审批流id
    private Integer id;
   // 租户
    private Integer companyId;
    //  产品
    private Integer productId;
    //签章服务id
    // private String serviceAlias;
    // @Range(min = 0, max = 1, message = "审批方式(0:审批流,1:邮件)", groups = {ValidGroup.Save.class})
    private Integer approvalWay = 0;
   // @NotNull(message = "审批类型(0:服务申请,1:签章服务模板申请)", groups = {ValidGroup.Save.class})
    private Integer approvalType = 1;
    //  附件id
    private String enclosureId = "" ;
    // 附件名
    private String enclosureName;

    String callerUrl = "http://test.zhongtai.com//api/scs/v2/template/auditSts";


    String serviceAlias = "SIGNATURE";
    //回调地址 todo
   // private String callerUrl= Strings.EMPTY;
    //模板id
    private String callerId= Strings.EMPTY;

   //申请原因
    private String description = Strings.EMPTY;
    //需要展示东西
    private String applyData = Strings.EMPTY;
    //@NotEmpty(message = "审批人不能为空！", groups = {ValidGroup.Save.class, ValidGroup.UpdateApprovers.class})
    private List<String> approverIds;

    private List<UserInfoRo> userInfoRos;

}
